<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../common/common.inc"%>
<!DOCTYPE html>
<html lang="en">
  <head>
    <title>
                  注意事项/须带物品-俍欣高原反应信息管理系统
    </title>
    <%@ include file="../common/taglib.jsp" %>
      <link rel="stylesheet" href="${ctx }/resources/css/common/matrix-style2.css"/>
      <link rel="stylesheet" href="${ctx }/resources/css/common/colorpicker.css"/>
      <link rel="stylesheet" href="${ctx }/resources/css/common/datepicker.css"/>
      <link rel="stylesheet" href="${ctx }/resources/css/common/uniform.css"/>
      <link rel="stylesheet" href="${ctx }/resources/css/common/select2.css"/>
      <link rel="stylesheet" href="${ctx }/resources/css/common/fancybox.css" media="screen"/>
      <link rel="stylesheet" href="${ctx }/resources/css/style_common.css?v=20160423"/>
  </head>
  <body>
    <div id="content">
      <div id="content-header">
        <h1>
                       注意事项/须带物品
        </h1>
      </div>
      <div class="container-fluid">
        <div class="row-fluid">
          <div class="span12">
            <div class="widget-box">
	          <div class="widget-title"> <span class="icon"><i class="icon-th"></i></span>
	            <h5>列表</h5>
	          </div>
	          <div class="widget-content nopadding">
	            <table class="table table-bordered data-table">
	              <thead>
	                <tr>
	                  <th style="width:50px;">编号</th>
	                  <th style="width:60px;">类型</th>
	                  <th style="width:110px;">标题</th>
	                  <th style="width:160px;">描述</th>
	                  <th style="width:200px;">图片</th>
	                  <th style="width:60px;">标签</th>
	                  <th>创建时间</th>
	                  <th>阅读次数</th>
	                  <th>状态</th>
	                  <th>操作</th>
	                </tr>
	              </thead>
	              <tbody>
	                <c:forEach items="${list }" var="item">
	                <tr class="gradeA">
	                  <td>${item.id }</td>
	                  <td>${item.type==1?'注意事项':'须带物品' }</td>
	                  <td><div class="layer-tip" data-title="${item.title}">${item.title }</div></td>
	                  <td><div class="layer-tip" data-title="${item.descr}">${item.descr }</div></td>
	                  <td><c:if test="${not empty item.image }"><a href="${item.image }" class="fancybox" title="查看图片"><img class="image-w200" alt="" src="${item.image }"></a></c:if></td>
	                  <td><div class="tag-style" style="background: none repeat scroll 0 0 ${item.color};">${item.tag}</div></td>
	                  <td class="center"><fmt:formatDate value="${item.createdAt }" pattern="yyyy-MM-dd"/></td>
	                  <td class="center">${item.readTime }</td>
	                  <td class="center">
	                  <c:if test="${item.status==1}"><span class="item-status-in">启用</span></c:if>
	                  <c:if test="${item.status==0}"><span class="item-status-un">停用</span></c:if>
	                  </td>
	                  <td class="center">
	                    <a href="${ctx }/notice/${item.id}" class="btn btn-primary btn-mini" data-id="${item.id }">编辑</a>&emsp;
	                    <c:if test="${item.status==0 }"><a href="#" class="btn btn-success btn-mini enable-link" data-id="${item.id }">启用</a></c:if>
	                    <c:if test="${item.status==1 }"><a href="#" class="btn btn-danger btn-mini disable-link" data-id="${item.id }">停用</a></c:if>
	                  </td>
	                </tr>
	                </c:forEach>
	              </tbody>
	            </table>
	          </div>
	        </div>
          </div>
        </div>
      </div>
    </div>
    <%@ include file="../common/taglib_js.jsp" %>
    <script type="text/javascript">
      var cdnUrl = "${ctx}/notice/";
    </script>
  </body>
</html>